package com.cuitrip.presenter;

import com.cuitrip.business.order.model.RefundInfo;

/**
 * 退款信息
 * Created by ak
 */
public class FeeRenderData {
    protected String orderPrice;
    protected String penalty;
    protected String refund;

    public FeeRenderData(String orderPrice,
                         String penalty, String refund) {
        this.orderPrice = orderPrice;
        this.penalty = penalty;
        this.refund = refund;
    }

    public static FeeRenderData getInstance(RefundInfo refundInfo) {
        FeeRenderData result = new FeeRenderData(refundInfo.getOrderPrice(), refundInfo.getCancelFee(), refundInfo.getRefundFee());
        return result;
    }
}
